package cn.git.demo.dao;

import cn.git.demo.pojo.Order;
import cn.git.demo.pojo.OrderQuery;

import java.util.List;

public interface OrderDao {
//    通过查询消息查询订单列表
    public List<Order> selectOrderListByQuery(OrderQuery orderQuery);
//    查询总条数
    public Integer selectTotalCount(OrderQuery orderQuery);

    public Order selectOrderUserById(Long id);


    public void addSingleOrder(Order order);

    public void updateOrder(Order order);

    public void deleteOrderById(Long id);

    public void updateOrderState(Long id);

    public Order selectDetailById(Long id);
}
